#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main(void)
{
    long int i, num, odd, even;
    odd = even = 0;

    while (scanf("%ld", &num) != EOF && (num >= 1 && num <= 100000))
    {
        for (i = 1; i <= num; i++)
        {
            if (0 == i % 2)
            {
                even++;
            }
            else
            {
                odd++;
            }
        }
        printf("%ld %ld", odd, even);
    }

    return 0;
}